<template>
  <div class="app-container home">
    <el-divider />
    <el-row :gutter="20">
      <el-col :xs="24" :sm="12" :md="12" :lg="8">
        <el-card class="update-log">
          <template v-slot:header>
            <div class="clearfix">
              <span>用户活跃度</span>
            </div>
          </template>
          <div class="body">
            <p>今日活跃用户数: 1234</p>
            <p>本周活跃用户数: 7890</p>
            <p>本月活跃用户数: 12345</p>
          </div>
        </el-card>
      </el-col>
      <el-col :xs="24" :sm="12" :md="12" :lg="8">
        <el-card class="update-log">
          <template v-slot:header>
            <div class="clearfix">
              <span>订单统计</span>
            </div>
          </template>
          <div class="body">
            <p>今日订单数: 100</p>
            <p>本周订单数: 500</p>
            <p>本月订单数: 1000</p>
          </div>
        </el-card>
      </el-col>
      <el-col :xs="24" :sm="12" :md="12" :lg="8">
        <el-card class="update-log">
          <template v-slot:header>
            <div class="clearfix">
              <span>销售额</span>
            </div>
          </template>
          <div class="body">
            <p>今日销售额: ￥10000</p>
            <p>本周销售额: ￥50000</p>
            <p>本月销售额: ￥100000</p>
          </div>
        </el-card>
      </el-col>
    </el-row>
  </div>
</template>

<script setup name="Index">
const version = ref('3.8.5')

function goTarget(url) {
  window.open(url, '__blank')
}
</script>

<style scoped lang="scss">
.home {
  blockquote {
    padding: 10px 20px;
    margin: 0 0 20px;
    font-size: 17.5px;
    border-left: 5px solid #eee;
  }
  hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #eee;
  }
  .col-item {
    margin-bottom: 20px;
  }

  ul {
    padding: 0;
    margin: 0;
  }

  h4 {
    margin-top: 0px;
  }

  h2 {
    margin-top: 10px;
    font-size: 26px;
    font-weight: 100;
  }

  p {
    margin-top: 10px;

    b {
      font-weight: 700;
    }
  }

  .update-log {
    ol {
      display: block;
      list-style-type: decimal;
      margin-block-start: 1em;
      margin-block-end: 1em;
      margin-inline-start: 0;
      margin-inline-end: 0;
      padding-inline-start: 40px;
    }
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: box-shadow 0.3s ease;

    &:hover {
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }

    .body {
      p {
        margin-top: 10px;
        font-size: 16px;
        color: #409eff;

        &:first-child {
        }

        &:hover {
          color: #ff5722;
          font-weight: bold;
        }
      }
    }
  }

  .clearfix {
    span {
      font-size: 18px;
      font-weight: bold;
      color: #409eff;
    }
  }
}
</style>